package com.echat.serviceapigateway.security.service;

import com.echat.serviceapigateway.security.model.network.AccessIp;

/**
 * Created by chenmohan on 2018/09/05
 *
 * @description IP白名单服务, 用于在对外提供接口服务时，对外来请求进行Ip限制
 */
public interface IpWhiteListService {

    boolean isExistIpWhiteList(Long userId, String ip);

    AccessIp getAccessIpByUserId(Long userId);

    AccessIp createAccessIp(Long userId);

    AccessIp updateAcceSSIp(AccessIp accessIp);
}
